﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;
using Volo.Abp;

namespace Himp.Platform.Dc
{
    /// <summary>
    /// 医保诊断字典
    /// </summary>
    [Table("HI_DIAG_DICT")]
    public class HiDiagDict : Entity<Guid>, IMultiTenant, ISoftDelete
    {
        /// <summary>
        /// 诊断编码
        /// </summary>
        [Column("DIAG_CODE")]
        public string DiagCode { get; set; }

        /// <summary>
        /// 诊断名称
        /// </summary>
        [Column("DIAG_NAME")]
        public string DiagName { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        [Column("VER")]
        public int Ver { get; set; }

        /// <summary>
        /// 拼音助记码
        /// </summary>
        [Column("PINYIN_MEMO")]
        public string? PinyinMemo { get; set; }

        /// <summary>
        /// 五笔助记码
        /// </summary>
        [Column("WUBI_MEMO")]
        public string? WubiMemo { get; set; }

        /// <summary>
        /// 临床诊断编码
        /// </summary>
        [Column("CLNC_DIAG_CODE")]
        public string? ClncDiagCode { get; set; }

        /// <summary>
        /// 临床诊断名称
        /// </summary>
        [Column("CLNC_DIAG_NAME")]
        public string? ClncDiagName { get; set; }

        /// <summary>
        /// 有效标识
        /// </summary>
        [Column("VALI_FALG")]
        public bool ValiFalg { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        public HiDiagDict(string diagCode, string diagName
            , string clncDiagCode, string clncDiagName)
        {
            DiagCode = diagCode;
            DiagName = diagName;
            ClncDiagCode = clncDiagCode;
            ClncDiagName = clncDiagName;
            Ver = 0;
        }
    }
}
